﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;
using CommerceOne.Domains.Commons;

namespace CommerceOne.Widgets.Sorting
{
    public class Configurations
    {
        public List<SortingItem> SortingItems { get; set; }
    }

    public class SortingItem
    {
        [XmlAttribute("No")]
        public int No { get; set; }

        [XmlAttribute("Name")]
        public string Name { get; set; }

        [XmlAttribute("SortingType")]
        public ProductSortType SortingType { get; set; }

        [XmlAttribute("IsDefault")]
        public bool IsDefault { get; set; }

        [XmlIgnore]
        public string PostBackAddress { get; set; }

        [XmlIgnore]
        public bool IsCurrent { get; set; }
    }
}